# Replication Package README

## Running the code

To replicate the study's analyses, it is recommended to open the replication_package_psrm.Rproj file in RStudio. 
Then navigate to the code folder and run the 00_run_all.R script. The script also contains lines to activate and restore the project library. It is recommended to install all necessary packages as per instruction in the Console (select "Y"). The script will then generate all results and save them in the results folder.

If, prior to running the code, you want to reset the replication package to a state without processed data and results (to get a clean start), delete the folders "data_processed" and "results" before you run any code.

If you want to run individual scripts, please first set the working directory, folder paths, and setsave variable as specified in the 00_run_all.R script.

The script takes around 2h23min to run.


## Note on the output

Table E10 is saved as an .xlsx with multiple sheets. Please check all sheets for the complete results.
Tables E6, E9, and E12 are saved separately for each treatment (indicated through the suffix). Please open all files for the complete results.